# GuestUser is a Null Object for users. See the Null Object Pattern.
class GuestUser < User
	
	def name
		t('activerecord.models.guest_user')
	end
	
	def preferred_locale
		nil
	end
		
	def user_group
		@user_group ||= UserGroup.find_by_name('Guests')
	end
	
	def user_group_id
		user_group.id
	end
	
	def guest?
		true
	end
	
	def admin?
		false
	end
	
end
